﻿using OA.Models.Enums;
using System;

namespace OA.Models.Attributes
{
    [AttributeUsage(AttributeTargets.Class)]
    public class ApplicationFormTypeAttribute : Attribute
    {
        /// <summary>
        ///  表单类型
        /// </summary>
        public ApplicationFormName Name { get; set; }

        /// <summary>
        ///  表单归类
        /// </summary>
        public ApplicationFormType Type { get; set; }

        /// <summary>
        ///  构造函数
        /// </summary>
        /// <param name="name">表单类型</param>
        /// <param name="type">表单归类</param>
        public ApplicationFormTypeAttribute(ApplicationFormType type)
        {
            Type = type;
        }
    }
}
